import { createBrowserRouter } from 'react-router'
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper'
import App from '@/App'

export const router = createBrowserRouter(
  [
    {
      path: '/',
      element: <App></App>,
      children: []
    }
  ],
  {
    basename: qiankunWindow.__POWERED_BY_QIANKUN__ ? '/amuser' : '/'
  }
)
